{if $entries|count}

    {if not isset($iteration)}{assign var="iteration" value=1}{/if}

    {if 1 == $iteration}
    <tr class="cells_right_menu">
	{*<td align="center" valign="middle" width="35"><img src="images/arrow_right_menu.jpg" width="9" height="9" /></td>*}
	<td align="left" valign="middle">
    {/if}


	<ul {if 1 == $iteration}id="subcategories"{/if}>
	{foreach from=$entries item=item}
	    <li>
		<a href="photo/{$item.url}" class="{if $item.active}yellow{else}white{/if}">{$item.name|escape}</a>
		{if $item.children|@count > 0}
		    {include file="_menu/default/subcategories.tpl" entries=$item.children iteration=`$iteration+1`}
		{/if}
	    </li>
	{/foreach}
	</ul>


    {if 1 == $iteration}
	</td>
    </tr>
    <tr>
	<td colspan="2" class="cells_right_menu_intend"></td>
    </tr>
    {/if}


{/if}